package com.example.gymmanagebackend.service;

import com.example.gymmanagebackend.pojo.Members;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface MembersService {
    int addMember(Members member);
    int deleteMemberByName(String name);
    int updateMember(Members member);
    List<Members> getAllMembers();
    Members findMemberById(Integer id);
    Members findMemberByPhone(String phone);
    Members findMemberByName(String name);
    Page<Members> findAll(Pageable pageable);
    String findPhoneByName(String name);
    void registerMember(Members member, String password);

    List<Members> getAgeDistribution();
    List<Members> getGenderDistribution();
    List<Members> getMemberGrowthTrend();
    List<Members> getCardPurchaseStatistics();
    Page<Members> findBySearch(String search, Pageable pageable);
}